<template>
  <div class="loadingBox">
    <img :src="url" class="loading" v-show="loading" />
    <slot></slot>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import load from '@/assets/loading.gif';
const url = ref(load)
defineProps({
  loading: false
})

</script>
<style lang="less" scoped>
@import "./index.less";
</style>